package com.tianma.upload.uploadjartest.builder.demo02;

/**
 * @author lgc
 * @createDate 2020/8/13 - 10:03
 */
public class Worker extends Builder {
    private Product product;

    public Worker() {
        this.product = new Product();
    }

    @Override
    Builder build1(String msg) {
        product.setBuild1(msg);
        return this;
    }

    @Override
    Builder build2(String msg) {
        product.setBuild2(msg);
        return this;
    }

    @Override
    Builder build3(String msg) {
        product.setBuild3(msg);
        return this;
    }

    @Override
    Product getProduct() {
        return product;
    }
}
